package com.pactera.jep.service.sys.conf;

import com.pactera.jep.autoconfigure.core.AbstractSwaggerConfiguration;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 系统管理API文档配置
 * @author Halcyon
 * @date 2018/5/22 9:44
 * @version v0.1
 */
@Configuration
@EnableSwagger2
public class JepSysSwaggerConfiguration extends AbstractSwaggerConfiguration {

    public ApiInfo buildApiInfo() {
        return new ApiInfoBuilder()
                .title("ijep-service-sys")
                .description("系统管理服务")
                .termsOfServiceUrl("http://www.pactera.com/jep/6_0_0/terms")
                .version("6.0.0")
                .contact(new Contact("成都研发部","http://www.pactera.com","risk@pactera.com"))
                .build();
    }

}
